﻿using ERP_SaaS_WinForm.显示;
using ERP_SaaS_WinForm.物料管理;
using ERP_SaaS_WinForm.生产工单_报工_工序;
using ERP_SaaS_WinForm.生产计划_派单_车间;
using ERP_SaaS_WinForm.生产计划_派单_车间.apollo;
using ERP_SaaS_WinForm.生产计划_派单_车间.ProductPlanDetail;
using ERP_SaaS_WinForm.登录;
using ERP_SaaS_WinForm.采购管理;
using ERP_SaaS_WinForm.销售;
using ERPWinFormWork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ERP_SaaS_WinForm
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            // 在启动 UI 之前确保配置初始化完成
            AppConfigMaterial.InitializeAsync().GetAwaiter().GetResult();

            ProductionConfig.InitializeAsync().GetAwaiter().GetResult();
            Apllo.InitializeAsync().GetAwaiter().GetResult();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);   
            Application.Run(new LoginForm());
        }
    }
}
